package entity

import (
	"time"

	"shqsoft.cn/pas3ui/base"
)

//IndiLoanDivi 对私个贷认定分户情况
type IndiLoanDivi struct {
	ID   int        `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	ACID int        `gorm:"column:ACID"` //帐户序号
	EMID int        `gorm:"column:EMID"` //员工序号
	EMNO string     `gorm:"column:EMNO"` //员工工号
	EMNM string     `gorm:"column:EMNM"` //员工名称
	DSDT time.Time  `gorm:"column:DSDT"` //分户日期
	WODT *time.Time `gorm:"column:WODT"` //销户日期
	DPNM string     `gorm:"column:DPNM"` //所属部门
	DSVL float64    `gorm:"column:DSVL"` //分户值
	ISWO bool       `gorm:"column:ISWO"` //是否删除
}

//TableName 对私个贷认定分户情况
func (IndiLoanDivi) TableName() string {
	return "V_INDI_LOAN_DIVI"
}
func IndiLoanDiviEF() base.EntityFunc {
	return func() interface{} {
		entity := IndiLoanDivi{}
		return &entity
	}
}
func IndiLoanDiviESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []IndiLoanDivi
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("IndiLoanDivi", base.NewDefaultDao(IndiLoanDiviEF(), IndiLoanDiviESF(), nil, "my"))
}
